﻿using System;
using System.Collections.Generic;
using System.Web.Http;
using PrismicIOAPI.Utility;

namespace PrismicIOAPI.api
{
    public class ListCacheController : ApiController
    {
        public List<string> Get()
        {
            List<string> cacheList = null;
            try
            {
               cacheList =   CacheUtility.ListCache();
            }
            catch (Exception ex)
            {
                //TODO: REVISE
                System.Diagnostics.Debug.WriteLine(ex.ToString());
            }
            return cacheList;
        }
    }
}
